Ubuntu20.04安全有效卸载wine

您所在的位置:网站首页 ubuntu 卸载系统 Ubuntu20.04安全有效卸载wine

Ubuntu20.04安全有效卸载wine

2023-09-06 11:11| 来源: 网络整理| 查看: 265

ubuntu20.04,wine 6.0.2(stable版),还没安装任何windos程序

卸载wine

1.列出所有wine.deb

apt list --installed | sed -E 's|(.*)/.*|\1|' | grep -i wine

2.把列出的包删除

sudo apt purge wine-stable-i386 sudo apt purge wine-stable-amd64 sudo apt purge winehp-stable sudo apt purge wine-stable

3.再次查看

apt list --installed | sed -E 's|(.*)/.*|\1|' | grep -i wine

执行下面一条命令,清除残留配置,出现erro时说明没有残留了。

sudo -l | grep ^rc |awk '{print $2}' | sudo xargs dpkg -P

4.最后残留的依赖包和配置

sudo apt autoremove sudo apt autoclean sudo apt clearn dpkg -l|grep ^rc|awk '{print $2}' |sudo xargs dpkg -P ​ rm -rfv ~/.wine

5.查看如下目录是否有为wine相关残留。按上述步骤来发现并没有wine相关残留

ls .local/share/applications/ ls .config/menus/applications-merged/ ls .local/share/icons/

6.查看系统里是否还有wine

sudo find / -name *wine*


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3